<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<button onclick="fush()">点击刷新</button>
<script type="application/javascript" src="jquery.min.js" ></script>
<script>
    function fush() {
        $.ajax({
            url:'login',
            success:function (data) {
                alert(data)
            },
            error:function (data) {
                alert(data)
            }
        })
    }
</script>
</body>
</html>